import java.sql.*;

public class DbConnection {

    public static Connection dbConn(){
        try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            Connection dbConn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=C:/Group2Project/project/Database.accdb");
            return dbConn;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}